//
//  AppTools.h
//  TourPlay
//
//  Created by dllo on 15/11/17.
//  Copyright © 2015年 王军岐. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^getAFNetBlock)(id result);
typedef void(^Error)(NSError *error);

@interface AppTools : NSObject

+ (void)getAFNet:(NSString *)url block:(getAFNetBlock)block errorBlock:(Error)errorBlock;

+ (void)compareSumWithArray:(NSMutableArray *)arr;

+ (float)widthForContent:(NSString *)content;
+ (float)heightForContent:(NSString *)content width:(float)width font:(float)font;

// 时间戳转换标准时间
+ (NSString *)timestampExchange:(NSInteger)time;

// 得到当前时间
+ (NSString *)getNowTime;
@end
